import { request } from 'umi';

export const getTodoList = async () => {
  try {
    const result = await request('/yr/todoList', {
      method: 'get',
    });
    return result;
  } catch (e) {
    console.log(e);
  }
};
